    <?php include ('menu.php') ?>    
    <script type="text/javascript" src="<?php bloginfo("template_url")?>/javascript/jquery-1.4.4.min.js"></script>
    <script type="text/javascript" src="<?php bloginfo("template_url")?>/javascript/jquery.ui.core.js"></script>
    <script type="text/javascript" src="<?php bloginfo("template_url")?>/javascript/jquery.ui.widget.js"></script>
    <script type="text/javascript" src="<?php bloginfo("template_url")?>/javascript/jquery.ui.rcarousel.min.js"></script>

    <div class="main-content">
        <div class="home">
            <div class="offers">
                <h2>OFERTAS DE LA SEMANA</h2>
                <div class="offer-item">
                    <ul>                
                    <?php $args = array(
                        'numberposts'     => 5,
                        'offset'          => 0,
                        'category'        => get_category_by_slug("ofertas")->cat_ID,
                        'orderby'         => 'post_date',
                        'order'           => 'DESC',
                        'post_type'       => 'post',
                        'post_status'     => 'publish' );
                    $posts_array = get_posts( $args ); 
                    foreach($posts_array as $post){
                        $imagen=postImage($post->ID);
                        $titulo=$post->post_title;
                        $precio=get_catalog_price($post->ID);
                        $link=$post->post_name;
                    ?>
                            <li>
                                <a href="<?php echo $link ?>"><img src="<?php echo $imagen; ?>" /></a><br />
                                <h3><a href="<?php echo $link ?>"><?php echo $titulo; ?></a></h3>
                                <h4><a href="<?php echo $link ?>">$ <?php echo $precio; ?></a></h4>
                            </li>
                    <?
                    }
                    ?> 
                    </ul>
                </div>
                <div class="clearfix"></div>                
            </div>
            <h2>PRODUCTOS RECOMENDADOS</h2>
            <div class="suggests">           
                <ul>
                    <?php $args = array(
                        'numberposts'     => 5,
                        'offset'          => 0,
                        'category'        => get_category_by_slug("recomendados")->cat_ID,
                        'orderby'         => 'post_date',
                        'order'           => 'DESC',
                        'post_type'       => 'post',
                        'post_status'     => 'publish' );
                    $posts_array = get_posts( $args ); 
                    foreach($posts_array as $post){
                        $imagen=postImage($post->ID);
                        $titulo=$post->post_title;
                        $precio=get_catalog_price($post->ID);
                        $link=$post->post_name;
                    
                        include ('item-unit.php');
                    }
                    ?>             
                </ul>
            </div>
            <div class="clearfix"></div>
        </div>
    </div>
   <? include('sidebar-right.php') ?>

</div>
